//
//  Reactive+Extension.swift
//  HinsLive
//
//  Created by haoxian on 2019/4/21.
//  Copyright © 2019 Hins. All rights reserved.
//

import Foundation
import RxSwift
import RxCocoa

extension Reactive where Base: UIButton {
    var isEnableTap: Binder<Bool> {
        return Binder<Bool>(base) { (btn, enable) in
            btn.alpha = enable ? 1.0 : 0.8
            btn.isEnabled = enable
        }
    }
}
